<template>
  <el-dialog
      v-model="visible"
      title="Tips"
      width="500"
  >
    <span>
<!--具名插槽-->
      <slot name="message"></slot>
    </span>
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="close">取消</el-button>
        <el-button @click="close" type="primary" >确定</el-button>
      </div>
    </template>
  </el-dialog>
</template>
<script lang="ts" setup>


const visible=defineModel('visible')

const close = () => {
  visible.value=false
}

</script>